﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="StaffManger.aspx.cs" Inherits="Module_StaffManger_StaffManger" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" />
    <ext:Panel ID="Panel1" runat="server" BodyPadding="0px" EnableBackgroundColor="true"
        ShowBorder="false" ShowHeader="false" Title="Panel" Layout="Fit">
        <Toolbars>
            <ext:Toolbar runat="server">
                <Items >
                    <ext:Button ID="BtnAdd" runat="server" Text="新增员工" OnClick="BtnAdd_Click">
                    </ext:Button>
                    <ext:Button ID="BtnDel" runat="server" Text="删除员工" OnClick="BtnDel_Click" ConfirmText="是否确定删除选中员工">
                    </ext:Button>
                    <ext:Button ID="Button3" runat="server" Text="查找员工" Hidden="true">
                    </ext:Button>
                    <ext:Button ID="BtnImport" runat="server" Text="导入员工信息" OnClick="BtnImport_Click">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Items>
            <ext:Grid ID="Grid1" runat="server" EnableCheckBoxSelect="true" 
                EnableRowNumber="true"  Title="Grid" ShowBorder="false" ShowHeader="false" AllowPaging="true"
            DataKeyNames="StaffID"  OnRowCommand="Grid1_RowCommand"  PageSize="30"
                OnPageIndexChange="Grid1_PageIndexChange">
                <Columns>
                    <ext:LinkButtonField Text="修改员工信息" CommandName="UpdateInfo" Width="100px" />
                    <ext:LinkButtonField Text="修改员工角色信息" CommandName="UpdateRoleInfo" Width="120px" />
                     <ext:LinkButtonField Text="重置员工密码" CommandName="UpdatePwd" Width="120px" />
                    <ext:BoundField DataField="StaffName" HeaderText="员工名称" />
                    <ext:BoundField DataField="Sex" HeaderText="员工性别" />
                    <ext:BoundField DataField="Birdthday" HeaderText="出生年月日" />
                    <ext:BoundField DataField="IDCard" HeaderText="身份证号码" />
                    <ext:BoundField DataField="Tel" HeaderText="联系电话" />
                    <ext:BoundField DataField="Address" HeaderText="联系地址" />
                    <ext:BoundField DataField="QQ" HeaderText="QQ号码" />
                    <ext:BoundField DataField="mail" HeaderText="邮箱" />
                    <ext:BoundField DataField="Hometown" HeaderText="籍贯" />
                    <ext:BoundField DataField="Remark" HeaderText="备注" />
                </Columns>
            </ext:Grid>
        </Items>
    </ext:Panel>

    <ext:Window ID="Window1" runat="server" Height="500px" IsModal="true" Popup="false" EnableIFrame="true" OnClose="Window1_Close" EnableClose="true"
        Title="Window" Width="1000px">
    </ext:Window>
       
       
    <ext:Window ID="Window2" runat="server" Height="600px" IsModal="true" Popup="false" EnableIFrame="true" Title="Window" Width="600px" OnClose="Window1_Close"  EnableClose="true">
    </ext:Window>
       
    <ext:Window ID="Window3" runat="server" Height="400px" IsModal="true" Popup="false" EnableIFrame="true" Title="Window" Width="200px">
    </ext:Window>
        
    <ext:Window ID="Window4" runat="server" Height="150px" IsModal="true" Popup="false"  Title="Window" Width="500px" EnableIFrame="true">
    </ext:Window>


    </form>
</body>
</html>
